Optimal. Leaf size=107 \[ -\frac {x^3}{2 a \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2}-\frac {3 x^2}{2 a^2 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}-\frac {x^4}{2 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}-\frac {\text {Shi}\left (2 \tanh ^{-1}(a x)\right )}{2 a^4}+\frac {\text {Shi}\left (4 \tanh ^{-1}(a x)\right )}{a^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.45, antiderivative size = 160, normalized size of antiderivative = 1.50, number of steps
used = 25, number of rules used = 8, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {6175, 6143,
6181, 5556, 12, 3379, 6179, 6113} \begin {gather*} -\frac {\text {Shi}\left (2 \tanh ^{-1}(a x)\right )}{2 a^4}+\frac {\text {Shi}\left (4 \tanh ^{-1}(a x)\right )}{a^4}+\frac {a^2 x^2+1}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}+\frac {3}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}-\frac {2}{a^4 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}+\frac {x}{2 a^3 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}-\frac {x}{2 a^3 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 3379
Rule 5556
Rule 6113
Rule 6143
Rule 6175
Rule 6179
Rule 6181
Rubi steps
\begin {align*} \int \frac {x^3}{\left (1-a^2 x^2\right )^3 \tanh ^{-1}(a x)^3} \, dx &=\frac {\int \frac {x}{\left (1-a^2 x^2\right )^3 \tanh ^{-1}(a x)^3} \, dx}{a^2}-\frac {\int \frac {x}{\left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^3} \, dx}{a^2}\\ &=-\frac {x}{2 a^3 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2}+\frac {x}{2 a^3 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}+\frac {1+a^2 x^2}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}+\frac {\int \frac {1}{\left (1-a^2 x^2\right )^3 \tanh ^{-1}(a x)^2} \, dx}{2 a^3}-\frac {2 \int \frac {x}{\left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)} \, dx}{a^2}+\frac {3 \int \frac {x^2}{\left (1-a^2 x^2\right )^3 \tanh ^{-1}(a x)^2} \, dx}{2 a}\\ &=-\frac {x}{2 a^3 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2}+\frac {x}{2 a^3 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}-\frac {1}{2 a^4 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}+\frac {1+a^2 x^2}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}-\frac {2 \text {Subst}\left (\int \frac {\cosh (x) \sinh (x)}{x} \, dx,x,\tanh ^{-1}(a x)\right )}{a^4}+\frac {3 \int \frac {1}{\left (1-a^2 x^2\right )^3 \tanh ^{-1}(a x)^2} \, dx}{2 a^3}-\frac {3 \int \frac {1}{\left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2} \, dx}{2 a^3}+\frac {2 \int \frac {x}{\left (1-a^2 x^2\right )^3 \tanh ^{-1}(a x)} \, dx}{a^2}\\ &=-\frac {x}{2 a^3 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2}+\frac {x}{2 a^3 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}-\frac {2}{a^4 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}+\frac {3}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}+\frac {1+a^2 x^2}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}+\frac {2 \text {Subst}\left (\int \frac {\cosh ^3(x) \sinh (x)}{x} \, dx,x,\tanh ^{-1}(a x)\right )}{a^4}-\frac {2 \text {Subst}\left (\int \frac {\sinh (2 x)}{2 x} \, dx,x,\tanh ^{-1}(a x)\right )}{a^4}-\frac {3 \int \frac {x}{\left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)} \, dx}{a^2}+\frac {6 \int \frac {x}{\left (1-a^2 x^2\right )^3 \tanh ^{-1}(a x)} \, dx}{a^2}\\ &=-\frac {x}{2 a^3 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2}+\frac {x}{2 a^3 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}-\frac {2}{a^4 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}+\frac {3}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}+\frac {1+a^2 x^2}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}-\frac {\text {Subst}\left (\int \frac {\sinh (2 x)}{x} \, dx,x,\tanh ^{-1}(a x)\right )}{a^4}+\frac {2 \text {Subst}\left (\int \left (\frac {\sinh (2 x)}{4 x}+\frac {\sinh (4 x)}{8 x}\right ) \, dx,x,\tanh ^{-1}(a x)\right )}{a^4}-\frac {3 \text {Subst}\left (\int \frac {\cosh (x) \sinh (x)}{x} \, dx,x,\tanh ^{-1}(a x)\right )}{a^4}+\frac {6 \text {Subst}\left (\int \frac {\cosh ^3(x) \sinh (x)}{x} \, dx,x,\tanh ^{-1}(a x)\right )}{a^4}\\ &=-\frac {x}{2 a^3 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2}+\frac {x}{2 a^3 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}-\frac {2}{a^4 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}+\frac {3}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}+\frac {1+a^2 x^2}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}-\frac {\text {Shi}\left (2 \tanh ^{-1}(a x)\right )}{a^4}+\frac {\text {Subst}\left (\int \frac {\sinh (4 x)}{x} \, dx,x,\tanh ^{-1}(a x)\right )}{4 a^4}+\frac {\text {Subst}\left (\int \frac {\sinh (2 x)}{x} \, dx,x,\tanh ^{-1}(a x)\right )}{2 a^4}-\frac {3 \text {Subst}\left (\int \frac {\sinh (2 x)}{2 x} \, dx,x,\tanh ^{-1}(a x)\right )}{a^4}+\frac {6 \text {Subst}\left (\int \left (\frac {\sinh (2 x)}{4 x}+\frac {\sinh (4 x)}{8 x}\right ) \, dx,x,\tanh ^{-1}(a x)\right )}{a^4}\\ &=-\frac {x}{2 a^3 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2}+\frac {x}{2 a^3 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}-\frac {2}{a^4 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}+\frac {3}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}+\frac {1+a^2 x^2}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}-\frac {\text {Shi}\left (2 \tanh ^{-1}(a x)\right )}{2 a^4}+\frac {\text {Shi}\left (4 \tanh ^{-1}(a x)\right )}{4 a^4}+\frac {3 \text {Subst}\left (\int \frac {\sinh (4 x)}{x} \, dx,x,\tanh ^{-1}(a x)\right )}{4 a^4}\\ &=-\frac {x}{2 a^3 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)^2}+\frac {x}{2 a^3 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}-\frac {2}{a^4 \left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}+\frac {3}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}+\frac {1+a^2 x^2}{2 a^4 \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)}-\frac {\text {Shi}\left (2 \tanh ^{-1}(a x)\right )}{2 a^4}+\frac {\text {Shi}\left (4 \tanh ^{-1}(a x)\right )}{a^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 66, normalized size = 0.62 \begin {gather*} -\frac {\frac {a^2 x^2 \left (a x+\left (3+a^2 x^2\right ) \tanh ^{-1}(a x)\right )}{\left (-1+a^2 x^2\right )^2 \tanh ^{-1}(a x)^2}+\text {Shi}\left (2 \tanh ^{-1}(a x)\right )-2 \text {Shi}\left (4 \tanh ^{-1}(a x)\right )}{2 a^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.85, size = 82, normalized size = 0.77
method | result | size |
derivativedivides | \(\frac {-\frac {\sinh \left (4 \arctanh \left (a x \right )\right )}{16 \arctanh \left (a x \right )^{2}}-\frac {\cosh \left (4 \arctanh \left (a x \right )\right )}{4 \arctanh \left (a x \right )}+\hyperbolicSineIntegral \left (4 \arctanh \left (a x \right )\right )+\frac {\sinh \left (2 \arctanh \left (a x \right )\right )}{8 \arctanh \left (a x \right )^{2}}+\frac {\cosh \left (2 \arctanh \left (a x \right )\right )}{4 \arctanh \left (a x \right )}-\frac {\hyperbolicSineIntegral \left (2 \arctanh \left (a x \right )\right )}{2}}{a^{4}}\) | \(82\) |
default | \(\frac {-\frac {\sinh \left (4 \arctanh \left (a x \right )\right )}{16 \arctanh \left (a x \right )^{2}}-\frac {\cosh \left (4 \arctanh \left (a x \right )\right )}{4 \arctanh \left (a x \right )}+\hyperbolicSineIntegral \left (4 \arctanh \left (a x \right )\right )+\frac {\sinh \left (2 \arctanh \left (a x \right )\right )}{8 \arctanh \left (a x \right )^{2}}+\frac {\cosh \left (2 \arctanh \left (a x \right )\right )}{4 \arctanh \left (a x \right )}-\frac {\hyperbolicSineIntegral \left (2 \arctanh \left (a x \right )\right )}{2}}{a^{4}}\) | \(82\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 267 vs.
\(2 (96) = 192\).
time = 0.42, size = 267, normalized size = 2.50 \begin {gather*} -\frac {8 \, a^{3} x^{3} - {\left (2 \, {\left (a^{4} x^{4} - 2 \, a^{2} x^{2} + 1\right )} \operatorname {log\_integral}\left (\frac {a^{2} x^{2} + 2 \, a x + 1}{a^{2} x^{2} - 2 \, a x + 1}\right ) - 2 \, {\left (a^{4} x^{4} - 2 \, a^{2} x^{2} + 1\right )} \operatorname {log\_integral}\left (\frac {a^{2} x^{2} - 2 \, a x + 1}{a^{2} x^{2} + 2 \, a x + 1}\right ) - {\left (a^{4} x^{4} - 2 \, a^{2} x^{2} + 1\right )} \operatorname {log\_integral}\left (-\frac {a x + 1}{a x - 1}\right ) + {\left (a^{4} x^{4} - 2 \, a^{2} x^{2} + 1\right )} \operatorname {log\_integral}\left (-\frac {a x - 1}{a x + 1}\right )\right )} \log \left (-\frac {a x + 1}{a x - 1}\right )^{2} + 4 \, {\left (a^{4} x^{4} + 3 \, a^{2} x^{2}\right )} \log \left (-\frac {a x + 1}{a x - 1}\right )}{4 \, {\left (a^{8} x^{4} - 2 \, a^{6} x^{2} + a^{4}\right )} \log \left (-\frac {a x + 1}{a x - 1}\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \frac {x^{3}}{a^{6} x^{6} \operatorname {atanh}^{3}{\left (a x \right )} - 3 a^{4} x^{4} \operatorname {atanh}^{3}{\left (a x \right )} + 3 a^{2} x^{2} \operatorname {atanh}^{3}{\left (a x \right )} - \operatorname {atanh}^{3}{\left (a x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} -\int \frac {x^3}{{\mathrm {atanh}\left (a\,x\right )}^3\,{\left (a^2\,x^2-1\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________